#include <limits>
#include "Gravity.h"

void Gravity::updateForce(Particle* particle, float frameTime)
{
	// Check that we do not have infinite mass.
	if (particle->mass == std::numeric_limits<float>::infinity())
		return;

	// Apply the mass-scaled force to the particle.
	particle->force += gravity * particle->mass;
}